﻿using UtilZ.Dotnet.Ex.Attributes;

namespace UtilZ.Dotnet.Ex.Base
{
    /// <summary>
    /// 线程模式
    /// </summary>
    public enum ThreadMode
    {
        /// <summary>
        /// 同步处理
        /// </summary>
        [DisplayNameEx("同步", "同步处理")]
        Sync,
        
        /// <summary>
        /// 异步处理
        /// </summary>
        [DisplayNameEx("异步", "异步处理")]
        Async,

        /// <summary>
        /// 自旋处理
        /// </summary>
        [DisplayNameEx("自旋", "自旋处理")]
        Spin,
    }
}
